package com.platform.controller.web;

import com.platform.common.annotation.Log;
import com.platform.common.core.page.TableDataInfo;
import com.platform.common.enums.BusinessType;
import com.platform.system.domain.vo.device.ChatBackgroundMusicVo;
import com.platform.system.service.ISysChatBackgroundMusicService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * @author Huangkai
 */
@Slf4j
@RestController
@RequestMapping("/chatBackgroundMusic/web")
public class ChatBackgroundMusicWebController {

    @Resource
    ISysChatBackgroundMusicService sysChatBackgroundMusicService;

    /**
     * 获取背景音乐
     */
    @Log(title = "获取背景音乐", businessType = BusinessType.OTHER)
    @PostMapping("/selectChatBackgroundMusicList")
    public TableDataInfo selectChatBackgroundMusicList(@Validated @RequestBody ChatBackgroundMusicVo chatBackgroundMusicVo) {
        return sysChatBackgroundMusicService.selectChatBackgroundMusicList(chatBackgroundMusicVo);
    }
}
